Latest Questions

How can I set the background colour of views according to theme?

How can I set the background colour of views according to theme? For example, in light theme a background colour of a view can be a light shade of gray, but in

How can I change dynamically the Width and Height to my Lottie in React?

I'm working on a web app builded in Django and React, I've a question about to change the width and height of my Lottie img when the screen change Its size. Tha

Linking models to assets on Swift Playgrounds for iPad (no Xcode) -- iOS App Dev Tutorials

StackOverflow. This is my first post. Please excuse any issues with the format. I've been trying to teach myself some iOS development in order to create an app

Why does validation in ASP.NET Core Razor Pages doesn't accept empty inputs?

I am learning how to code in ASP.NET Core Razor Pages and am working on validation right now. Both in client side and server side validation no input is allowed

How to preview component with react portal using storybook.js

I implemented a Popper component using popper.js, and I used React's Portal to render popper element. And now I want to preview my popper component, but It fail

Selenium 4 in Python works with Edge option headless False, but not with True

So I have function which takes some information from a website (https://www.fragrantica.com/perfume/Dior/Sauvage-Eau-de-Parfum-48100.html ; and I want to take r

D3.js display chart segment data on click

First time posting so please bear with me. I'm playing around with D3.js and charts at the moment and having trouble getting a working onclick function to displ

How to use maps and enumerations for property names in typescript?

The object pulsarAlert is returning with type [x: string] : string Ideally it should be able to detect that if channel = "SMS" then notificationType = "phone",

Mongoose - get all requried fields only from the schema

I want to apply validation on controller level similar to what we have in a Form Request in Laravel but I want that in Node JS. I want to know the required fiel

React app re-rendering and infinitely fetching data using axios

I'm a self-taught developer, almost entirely in native iOS apps. For a project of mine, I've hired a web developer to build a React web app (hosted by Firebase)

LocalStorage and UseEffect

I have a problem during render a screen in react. I have two modules: login and dashboard. When a user is authenticated and the api's result is 'Ok', I set a lo

VBA Mapping Sharepoint Drive to File Explorer To Loop Through PDFS

I have a script within an excel that needs to loop through whichever folder its in on the Sharepoint, and attach it to an email. As I understand I need a direct

new to iterm2 confused about this symbol on the top left side of window

does anyone know what's the option command 1 symbol on the iterm window is? I thought it was for name of tab but that's cmd+#

How to focus textbox and send ENTER key using child handle?

How to focus and send 'ENTER' key to child control's textbox? code: //Get textbox child handle IntPtr TextboxChild = FindWindow("Edit", "mulatetwindow"); //S

Is it possible to convert Unicode ASCII bytes[ ] to actual strings(Hi)

Is it possible to convert following bytes[] to a string as "Hi". Currently it is showing as "H�" //"Hi" - is actual message byte[] bytes = {72,175}; stri

Why doesn't flexing work for this spinner?

The output- [Out put of the code][1] I tried margin auto, justifying, alignment, and more but nothing worked. I am new to programming so I'm not able to underst

Google.Drive.Api Oauth 2 Credientials in Xamarin android application

I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for A

Two sinks logger as default logger not working

I'm trying to combine two sinks: auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>(); console_sink->set_level(spdlog::l

Encoding Realm models using @Persisted gives a Swift EncodingError message

When trying to encode this: class MyClass: Object, Codable { @Persisted var someValue: String } // I've created and added MyClass to Realm. I then query for

Find Duplicate Values and Export Rows into New Sheet

I have two worksheets, one with all of my raw data (Base) and the other housing information submitted from a form (Sheet 1). I am trying to find any duplicate I

Power of 3 in mod 1000000007

Let k be a positive integer. Is it possible to find out the value of 3^k in mod 1000000007? I have written a C program code to do this but it gives a message on

push_back element to vector in class object isn't working

classObject and vector within it. I made a vector of classObject and function that searches classObject with a given int id. Wanted to search certain classObjec

Javascript doesn't Run Without Refresh After Submitting Form Using Turbolinks

I have some javascript that puts click handlers on buttons (for instance). Since those buttons don't exist when the user first visits the app at, say, the "Home

Using "fsgets" in C How can Split string and make a structure

i want to read from the file using fgets and send the information to struct in array so i write this code but the output in incorrect this is the file i tried t

Paste together results within case_when (if-else) statements

I want to paste together results within the same case_when statement (i.e., if multiple statements are true for a given row). I know that I could do something l

Selenium webdriver -> closing my chrome after one second

I have issue with selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.binary_location = "

What happens to old app data written in another language when you release a new version of the App written in Flutter?

So I have my app released which was written in another older framework (non flutter). I've since rewritten the app from scratch in Flutter. The app, while func

How to overwrite Bootstrap's checkbox with an emoji?

As described in https://getbootstrap.com/docs/5.0/forms/checks-radios/ what Bootstrap allows me to do is change the checkmark with a link like so:$form-check-in

Rota Include EJS

rotas ´´´ <%- include() %> ´´´ como posso usando include colocar o header.ejs que se encontra dentro do parts no arqui

What are XTRA, YOPQ, YTLC, etc. in CSS?

I'm reading a blog on Roboto Flex font which is a variable font, and I see mentions of Parametric Counter Width (XTRA in CSS) Parametric Thin Stroke (YOPQ in C